﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/tree">
  <html>
	<head>
	<link rel="stylesheet" href="/jqueryTreeview/jquery.treeview.css"></link>
	<script src="/jqueryTreeview/jquery.treeview.js"></script>
	<script src="/ietm/js/sns.js"></script>
	</head>
	<style>
	.aslected{background-color: #eee;}
	</style>
  <body>
	<ul id="browser" class="filetree">
    <xsl:for-each select="modelic-sdc/chapnum">
	<xsl:sort select="@id" order="ascending"/>
		<li>
			<span><xsl:value-of select="@id"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="@title"/></span>
			<ul>
				<xsl:for-each select="section-subsect">
					<li>
						<span><xsl:value-of select="@id"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="@title"/></span> 
							<ul>
								<xsl:for-each select="subject">
									<li>
										<span><xsl:value-of select="@id"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="@title"/></span>
											<ul>
												<xsl:for-each select="discode/discodev/incode/incodev/itemloc/page">
													<li>
														<span>
														<a target="home">
														<xsl:attribute name="href">/html/<xsl:value-of select="tmidno"/>/<xsl:value-of select="dmc"/>.html</xsl:attribute>
														<xsl:value-of select="title"/>
														</a>
														</span>
													</li>
												</xsl:for-each>
											</ul>
									</li>
								</xsl:for-each>
							</ul>
					</li>
				</xsl:for-each>
			</ul>
		</li>
	  
      </xsl:for-each>
	</ul>
  </body>
  </html>	  
</xsl:template>

</xsl:stylesheet>